<!DOCTYPE html>
<html>
<head>
	<meta charset="UTF-8">
	<title>Blog</title>

	<link href="<?php echo  base_url() ?>public/css/bootstrap.min.css" rel="stylesheet">
    <link href="<?php echo  base_url() ?>public/css/bootstrap-theme.min.css" rel="stylesheet">
    <link href="<?php echo  base_url() ?>public/css/basic.css" rel="stylesheet">
    <link href="<?php echo  base_url() ?>public/css/style.css" rel="stylesheet">
</head>
<body>

<?php $this->load->view('admin/header')	?>

<table class="table wd960 ml0 mt50">
			<tr>
				<td>name</td>

				<td>操作<a href="<?php echo site_url('admin/Catalog_ctrl/add_one/'); ?>"><button type="button" class="btn btn-info">添加</button></a></td>
			</tr>
		<?php foreach ($names as $name)
			{
		?>
			<tr>
				<td><?=$name['name'];?></td>
				<td>
				<a href="<?php echo site_url('admin/Catalog_ctrl/edit_one/'. $name['id']); ?>"><button type="button" class="btn btn-warning btn-sm">编辑</button></a>
				<a href="<?php echo site_url('admin/Catalog_ctrl/del_one/'. $name['id']); ?>"><button type="button" class="btn btn-danger btn-sm">删除</button></a>
				</td>
			</tr>
		<?php
			}
		?>		
	</table>
</body>
</html>
